package com.emotion.sshticket.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class EmailAuthenticator extends Authenticator {
	private String id;
	private String pw;

	public EmailAuthenticator(String id, String pwd){
		this.id = id;
		this.pw = pwd;
	}

	protected PasswordAuthentication getPasswordAuthentication(){
		return new PasswordAuthentication(id, pw);
	}
}
